import java.util.Scanner;

/**
 * Created by 81052 on 2018/4/7.
 */
public class Dome11 {
    public static void main(String[] args) {
        System.out.println("一行文本:");
        Scanner sc=new Scanner(System.in);
        String str=sc.nextLine();
        String regex="[\\s\\d\\p{Punct}]+";
        String words[]=str.split(regex);
        for (int i=0;i<words.length;i++) {
            int m=i+1;
            System.out.println("单词"+m+":"+words[i]);
        }
    }
}
